<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>main</title>
<load href='__PUBLIC__/Css/admin.css' />
<load href='__PUBLIC__/Js/admin_user.js' />
<load href="__PUBLIC__/Js/jquery-1.7.2.min.js" />
<script>
	$(document).ready(function(){
		face = $(":input[name='user_face']").val();
		$("select option[value='" + face + "']").attr("selected",true);
		question = $(":input[name='question_sel']").val();
		$("select option[value='" + question + "']").attr("selected",true);
	});
</script>
</head>
<body id="main">
<div class="map">
	管理首页 &gt;&gt; 会员管理 &gt;&gt; <strong id="title">修改会员</strong>
</div>

<ol>
	<li><a href="__URL__/index" class="selected">会员列表</a></li>
	<li><a href="__URL__/add">新增会员</a></li>
	<li><a href="__URL__/edit/id/{$user.id}">修改会员</a></li>
</ol>
<form method="post" name="reg" action="__URL__/update">
	<input type="hidden" value="{$user.id}" name="id" />
	<input type="hidden" value="{$user.face}" name="user_face" />
	<input type="hidden" value="{$user.question}" name="question_sel" />
	<table cellspacing="0" class="user">
		<tr><td>用 户 名： {$user.user}</td></tr>
		<tr><td>密　　码：<input type="password" class="text" name="pass" />  ( * 留空则不修改 )</td></tr>
		<tr><td>电子邮件：<input type="text" class="text" value="{$user.email}" name="email" /> <span class="red">[必填]</span> ( *每个电子邮件只能注册一个ID )</td></tr>
		<tr><td>选择头像：<select name="face" onchange="sface();">
									<for start="1" end="25">
										<option value="{$face[$i]}.gif">{$face[$i]}.gif</option>
									</for>
									</select>
		</td></tr>
		<tr><td><img name="faceimg" src="__PUBLIC__/Images/{$user.face}" class="face" alt="{$user.face}" /></td></tr>
		<tr><td>安全问题：<select name="question">
									<option value="">没有任何安全问题</option>
									<option value="您父亲的姓名？">您父亲的姓名？</option>
									<option value="您母亲的职业？">您母亲的职业？</option>
									<option value="您配偶的性别？">您配偶的性别？</option>
								</select>
		</td></tr>
		<tr><td>问题答案：<input type="text" class="text" value="{$user.answer}" name="answer" /></td></tr>
		<tr><td><input type="submit" class="submit" onclick="return checkUpdate();" name="send" value="修改会员" /> [<a href="{$prev_url}">返回上一层</a>]</td></tr>
	</table>
</form>
</body>
</html>